#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QtGui/QWidget>
#include <QStringList>
#include <QString>
#include <QDir>
#include <QShortcut>
#include <QDialog>

#include "ui_LoginDialog.h"

#include <iostream>
#include <vector>

#include "MessageBox.h"
#include "SQLiteDB.h"
#include "WordManager.h"

using namespace std;

class LoginDialog : public QDialog
{
    Q_OBJECT

public:
    LoginDialog(QDialog *parent = 0);
    ~LoginDialog();

    void setAccountTable();

public slots:
    void accountSelected(QListWidgetItem* item);
    void newUser();
    void deleteUser();
    void login();

private:
    Ui::LoginDialogClass ui;

    QStringList mUsers;
    QString mCurUser;

signals:
    //void loginSig();
    void itemActivated(QListWidgetItem* item);
};

#endif // LOGINDIALOG_H
